home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / apps.to.go / •AppsToGo Reference / •AppsToGo Reference.rsrc / WFMT_215_a136 < prev    next >
Unknown  |  1994-07-14  |  3.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file TTComp archive data, binary, 2K dictionary default (weak)
99% file data default
66% TrID TTComp archive compressed (bin-2K) default (weak)
33% TrID Adobe PhotoShop Brush default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 05 00 01 00 00 00 1a | 00 00 00 00 00 00 00 1a |........|........|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 05 00 00 |........|........|
|00000030| 00 22 00 00 02 1b 00 00 | 00 22 61 31 33 36 00 00 |."......|."a136..|
|00000040| 4e 16 00 00 20 19 00 00 | 00 00 00 00 00 00 00 00 |N... ...|........|
|00000050| 00 00 08 43 4c 49 6e 73 | 65 72 74 00 00 06 00 00 |...CLIns|ert.....|
|00000060| 00 00 00 af 00 00 02 1c | 00 00 00 af 00 00 00 14 |........|........|
|00000070| 03 c1 00 28 05 7e 00 ff | 00 00 00 00 00 00 0f a8 |...(.~..|........|
|00000080| 00 00 00 00 4e 1c 00 00 | 00 09 00 00 00 04 00 04 |....N...|........|
|00000090| ff fc ff fa 00 04 00 04 | ff fc ff fc 00 00 00 00 |........|........|
|000000a0| 00 00 00 00 83 00 0b 40 | 10 6b 53 63 72 65 65 6e |.......@|.kScreen|
|000000b0| 41 50 49 2f 31 39 39 39 | 36 00 06 47 65 6e 65 76 |API/1999|6..Genev|
|000000c0| 61 00 00 55 73 68 6f 72 | 74 20 43 4c 49 6e 73 65 |a..Ushor|t CLInse|
|000000d0| 72 74 28 4c 69 73 74 48 | 61 6e 64 6c 65 20 6c 69 |rt(ListH|andle li|
|000000e0| 73 74 48 6e 64 6c 2c 20 | 63 68 61 72 20 2a 64 61 |stHndl, |char *da|
|000000f0| 74 61 2c 20 73 68 6f 72 | 74 20 64 61 74 61 4c 65 |ta, shor|t dataLe|
|00000100| 6e 2c 20 73 68 6f 72 74 | 20 72 6f 77 2c 20 73 68 |n, short| row, sh|
|00000110| 6f 72 74 20 63 6f 6c 29 | 3b 00 00 00 06 00 00 00 |ort col)|;.......|
|00000120| 00 00 89 00 00 02 1d 00 | 00 00 89 00 00 00 00 03 |........|........|
|00000130| c1 00 14 05 7e 00 ff 00 | 00 00 00 00 00 0f a8 00 |....~...|........|
|00000140| 00 00 00 4e 1d 00 00 00 | 09 00 00 00 04 00 04 ff |...N....|........|
|00000150| fc ff fa 00 04 00 04 ff | fc ff fc 00 00 00 00 00 |........|........|
|00000160| 00 00 00 83 00 0b 40 14 | 6b 53 63 72 65 65 6e 4f |......@.|kScreenO|
|00000170| 6e 65 4c 69 6e 65 2f 31 | 39 39 39 37 00 06 47 65 |neLine/1|9997..Ge|
|00000180| 6e 65 76 61 00 00 2b 49 | 6e 73 65 72 74 20 61 20 |neva..+I|nsert a |
|00000190| 63 65 6c 6c 20 61 6c 70 | 68 61 62 65 74 69 63 61 |cell alp|habetica|
|000001a0| 6c 6c 79 20 69 6e 74 6f | 20 74 68 65 20 6c 69 73 |lly into| the lis|
|000001b0| 74 2e 00 00 00 06 00 00 | 00 00 00 44 00 00 02 1e |t.......|...D....|
|000001c0| 00 00 00 44 00 00 00 00 | 02 6b 04 40 02 6c 01 00 |...D....|.k.@.l..|
|000001d0| 00 00 00 00 00 01 0f f1 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 0c 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 06 00 00 00 00 00 85 |........|........|
|00000210| 00 00 02 1f 00 00 00 85 | 00 00 00 00 02 6b 02 28 |........|.....k.(|
|00000220| 03 c1 00 ff 00 00 00 00 | 00 00 0f a8 00 00 00 00 |........|........|
|00000230| 4e 16 00 00 00 09 00 00 | 00 04 00 04 ff fc ff fa |N.......|........|
|00000240| 00 04 00 04 ff fc ff fc | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 83 00 0b 40 0b 6c 69 6e | 6b 73 2f 31 39 39 39 30 |...@.lin|ks/19990|
|00000260| 00 06 4d 6f 6e 61 63 6f | 00 00 1a 61 31 33 36 2c |..Monaco|...a136,|
|00000270| 43 4c 49 6e 73 65 72 74 | 0d 61 31 33 41 2c 43 4c |CLInsert|.a13A,CL|
|00000280| 4e 65 78 74 0d 00 16 00 | 01 00 00 00 00 00 10 00 |Next....|........|
|00000290| 0c 00 01 00 00 00 00 00 | 00 00 00 00 00 00 06 00 |........|........|
|000002a0| 00 00 00 0c cb 00 00 02 | 20 00 00 0c cb 00 00 00 |........| .......|
|000002b0| 00 00 00 75 30 02 6b 01 | ff 00 00 00 00 00 00 0f |...u0.k.|........|
|000002c0| a8 00 00 00 00 4e 1f 00 | 00 00 09 00 00 00 04 00 |.....N..|........|
|000002d0| 04 ff fc ff fa 00 04 00 | 04 ff fc ff fc 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 83 00 0b | 40 0a 62 6f 64 79 2f 31 |........|@.body/1|
|000002f0| 39 39 39 39 00 06 4d 6f | 6e 61 63 6f 00 0c 39 73 |9999..Mo|naco..9s|
|00000300| 68 6f 72 74 20 43 4c 49 | 6e 73 65 72 74 28 4c 69 |hort CLI|nsert(Li|
|00000310| 73 74 48 61 6e 64 6c 65 | 20 6c 69 73 74 48 6e 64 |stHandle| listHnd|
|00000320| 6c 2c 20 63 68 61 72 20 | 2a 64 61 74 61 2c 20 73 |l, char |*data, s|
|00000330| 68 6f 72 74 20 64 61 74 | 61 4c 65 6e 2c 20 73 68 |hort dat|aLen, sh|
|00000340| 6f 72 74 20 72 6f 77 2c | 20 73 68 6f 72 74 20 63 |ort row,| short c|
|00000350| 6f 6c 29 3b 0d 0d 49 4e | 50 55 54 3a 20 20 6c 69 |ol);..IN|PUT: li|
|00000360| 73 74 48 6e 64 6c 20 20 | 20 20 54 68 65 20 6c 69 |stHndl | The li|
|00000370| 73 74 20 74 6f 20 62 65 | 20 69 6e 73 65 72 74 65 |st to be| inserte|
|00000380| 64 20 69 6e 74 6f 2e 0d | 20 20 20 20 20 20 20 20 |d into..| |
|00000390| 64 61 74 61 20 20 20 20 | 20 20 20 20 50 6f 69 6e |data | Poin|
|000003a0| 74 65 72 20 74 6f 20 64 | 61 74 61 20 74 6f 20 69 |ter to d|ata to i|
|000003b0| 6e 73 65 72 74 2e 0d 20 | 20 20 20 20 20 20 20 64 |nsert.. | d|
|000003c0| 61 74 61 4c 65 6e 20 20 | 20 20 20 4c 65 6e 67 74 |ataLen | Lengt|
|000003d0| 68 20 6f 66 20 64 61 74 | 61 20 74 6f 20 69 6e 73 |h of dat|a to ins|
|000003e0| 65 72 74 2e 0d 20 20 20 | 20 20 20 20 20 72 6f 77 |ert.. | row|
|000003f0| 20 20 20 20 20 20 20 20 | 20 52 6f 77 20 74 6f 20 | | Row to |
|00000400| 69 6e 73 65 72 74 20 69 | 6e 74 6f 20 28 6f 72 20 |insert i|nto (or |
|00000410| 2d 31 20 69 66 20 74 6f | 20 62 65 20 64 65 74 65 |-1 if to| be dete|
|00000420| 72 6d 69 6e 65 64 29 2e | 0d 20 20 20 20 20 20 20 |rmined).|. |
|00000430| 20 63 6f 6c 20 20 20 20 | 20 20 20 20 20 43 6f 6c | col | Col|
|00000440| 75 6d 6e 20 74 6f 20 69 | 6e 73 65 72 74 20 69 6e |umn to i|nsert in|
|00000450| 74 6f 20 28 6f 72 20 2d | 31 20 69 66 20 74 6f 20 |to (or -|1 if to |
|00000460| 62 65 20 64 65 74 65 72 | 6d 69 6e 65 64 29 2e 0d |be deter|mined)..|
|00000470| 52 45 53 55 4c 54 3a 20 | 73 68 6f 72 74 20 20 20 |RESULT: |short |
|00000480| 20 20 20 20 54 68 65 20 | 70 6f 73 69 74 69 6f 6e | The |position|
|00000490| 20 61 74 20 77 68 69 63 | 68 20 74 68 65 20 64 61 | at whic|h the da|
|000004a0| 74 61 20 77 61 73 20 69 | 6e 73 65 72 74 65 64 2e |ta was i|nserted.|
|000004b0| 0d 0d 49 6e 73 65 72 74 | 20 61 20 63 65 6c 6c 20 |..Insert| a cell |
|000004c0| 61 6c 70 68 61 62 65 74 | 69 63 61 6c 6c 79 20 69 |alphabet|ically i|
|000004d0| 6e 74 6f 20 74 68 65 20 | 6c 69 73 74 2e 20 20 57 |nto the |list. W|
|000004e0| 68 69 63 68 65 76 65 72 | 20 70 61 72 61 6d 65 74 |hichever| paramet|
|000004f0| 65 72 20 69 73 20 70 61 | 73 73 65 64 20 69 6e 20 |er is pa|ssed in |
|00000500| 61 73 20 2d 31 2c 20 65 | 69 74 68 65 72 0d 72 6f |as -1, e|ither.ro|
|00000510| 77 20 6f 72 20 63 6f 6c | 75 6d 6e 2c 20 74 68 61 |w or col|umn, tha|
|00000520| 74 20 69 73 20 74 68 65 | 20 64 69 6d 65 6e 73 69 |t is the| dimensi|
|00000530| 6f 6e 20 74 68 61 74 20 | 69 73 20 64 65 74 65 72 |on that |is deter|
|00000540| 6d 69 6e 65 64 2e 20 20 | 54 68 65 20 6d 65 74 68 |mined. |The meth|
|00000550| 6f 64 20 6f 66 20 68 61 | 6e 64 6c 69 6e 67 20 68 |od of ha|ndling h|
|00000560| 65 0d 63 6f 6d 70 61 72 | 69 73 6f 6e 73 20 68 61 |e.compar|isons ha|
|00000570| 73 20 62 65 65 6e 20 63 | 68 61 6e 67 65 64 20 74 |s been c|hanged t|
|00000580| 6f 20 61 6c 6c 6f 77 20 | 63 75 73 74 6f 6d 69 7a |o allow |customiz|
|00000590| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 6c 69 73 |ation of| the lis|
|000005a0| 74 20 64 61 74 61 20 61 | 6e 64 20 73 65 61 72 63 |t data a|nd searc|
|000005b0| 68 20 6d 65 74 68 6f 64 | 73 2e 0d 42 65 66 6f 72 |h method|s..Befor|
|000005c0| 65 2c 20 69 74 20 77 61 | 73 20 61 73 73 75 6d 65 |e, it wa|s assume|
|000005d0| 64 20 74 68 61 74 20 74 | 68 65 20 63 65 6c 6c 20 |d that t|he cell |
|000005e0| 63 6f 6e 74 65 6e 74 20 | 77 61 73 20 74 65 78 74 |content |was text|
|000005f0| 2c 20 61 6e 64 20 74 68 | 61 74 20 74 68 65 20 64 |, and th|at the d|
|00000600| 65 66 61 75 6c 74 20 4c | 44 45 46 20 77 61 73 20 |efault L|DEF was |
|00000610| 62 65 69 6e 67 0d 75 73 | 65 64 2e 20 20 49 66 20 |being.us|ed. If |
|00000620| 79 6f 75 20 77 72 69 74 | 65 20 61 20 63 75 73 74 |you writ|e a cust|
|00000630| 6f 6d 20 4c 44 45 46 20 | 74 68 61 74 20 75 73 65 |om LDEF |that use|
|00000640| 73 20 61 20 64 69 66 66 | 65 72 65 6e 74 20 64 61 |s a diff|erent da|
|00000650| 74 61 20 66 6f 72 6d 61 | 74 2c 20 79 6f 75 20 68 |ta forma|t, you h|
|00000660| 61 64 20 70 72 6f 62 6c | 65 6d 73 20 62 65 66 6f |ad probl|ems befo|
|00000670| 72 65 2e 0d 4e 6f 77 2c | 20 77 69 74 68 20 74 68 |re..Now,| with th|
|00000680| 65 20 61 64 64 69 74 69 | 6f 6e 20 6f 66 20 74 77 |e additi|on of tw|
|00000690| 6f 20 70 72 6f 63 65 64 | 75 72 65 20 70 6f 69 6e |o proced|ure poin|
|000006a0| 74 65 72 73 2c 20 79 6f | 75 20 63 61 6e 20 63 75 |ters, yo|u can cu|
|000006b0| 73 74 6f 6d 69 7a 65 20 | 74 68 65 20 64 61 74 61 |stomize |the data|
|000006c0| 20 63 6f 6d 70 61 72 69 | 73 6f 6e 73 2e 0d 54 68 | compari|sons..Th|
|000006d0| 65 20 74 77 6f 20 6e 65 | 77 20 70 72 6f 63 73 20 |e two ne|w procs |
|000006e0| 61 72 65 3a 0d 20 20 20 | 20 31 29 20 67 65 74 43 |are:. | 1) getC|
|000006f0| 6f 6d 70 61 72 65 44 61 | 74 61 0d 20 20 20 20 32 |ompareDa|ta. 2|
|00000700| 29 20 64 6f 43 6f 6d 70 | 61 72 65 44 61 74 61 0d |) doComp|areData.|
|00000710| 54 68 65 20 66 69 72 73 | 74 20 70 72 6f 63 2c 20 |The firs|t proc, |
|00000720| 67 65 74 43 6f 6d 70 61 | 72 65 44 61 74 61 2c 20 |getCompa|reData, |
|00000730| 69 66 20 6e 69 6c 2c 20 | 73 69 6d 70 6c 79 20 67 |if nil, |simply g|
|00000740| 65 74 73 20 74 68 65 20 | 64 61 74 61 20 6f 75 74 |ets the |data out|
|00000750| 20 6f 66 20 74 68 65 20 | 63 65 6c 6c 20 66 6f 72 | of the |cell for|
|00000760| 20 63 6f 6d 70 61 72 69 | 73 6f 6e 0d 70 75 72 70 | compari|son.purp|
|00000770| 6f 73 65 73 2e 20 20 49 | 66 20 69 74 20 69 73 20 |oses. I|f it is |
|00000780| 6e 6f 74 20 6e 69 6c 2c | 20 74 68 65 6e 20 74 68 |not nil,| then th|
|00000790| 65 20 70 72 6f 63 20 69 | 73 20 63 61 6c 6c 65 64 |e proc i|s called|
|000007a0| 2c 20 61 6e 64 20 74 68 | 65 20 70 72 6f 63 20 67 |, and th|e proc g|
|000007b0| 65 74 73 20 74 68 65 20 | 64 61 74 61 20 6f 75 74 |ets the |data out|
|000007c0| 20 6f 66 20 74 68 65 0d | 63 65 6c 6c 2e 20 20 54 | of the.|cell. T|
|000007d0| 68 65 20 70 72 6f 63 20 | 63 61 6e 20 74 68 65 6e |he proc |can then|
|000007e0| 20 67 65 74 20 77 68 61 | 74 65 76 65 72 20 64 61 | get wha|tever da|
|000007f0| 74 61 20 69 74 20 6e 65 | 65 64 73 20 74 6f 20 66 |ta it ne|eds to f|
|00000800| 6f 72 20 74 68 65 20 70 | 75 72 70 6f 73 65 20 6f |or the p|urpose o|
|00000810| 66 20 63 6f 6d 70 61 72 | 69 6e 67 20 74 6f 20 6f |f compar|ing to o|
|00000820| 74 68 65 72 0d 63 65 6c | 6c 73 20 61 6e 64 20 66 |ther.cel|ls and f|
|00000830| 69 6e 64 69 6e 67 20 74 | 68 65 20 69 6e 73 65 72 |inding t|he inser|
|00000840| 74 20 6c 6f 63 61 74 69 | 6f 6e 20 69 6e 20 74 68 |t locati|on in th|
|00000850| 65 20 6c 69 73 74 2e 20 | 20 54 68 65 20 73 65 63 |e list. | The sec|
|00000860| 6f 6e 64 20 70 72 6f 63 | 2c 20 64 6f 43 6f 6d 70 |ond proc|, doComp|
|00000870| 61 72 65 44 61 74 61 2c | 20 69 66 20 6e 69 6c 0d |areData,| if nil.|
|00000880| 74 65 6c 6c 73 20 74 68 | 65 20 4c 69 73 74 20 63 |tells th|e List c|
|00000890| 6f 6e 74 72 6f 6c 20 74 | 6f 20 63 61 6c 6c 20 49 |ontrol t|o call I|
|000008a0| 55 4d 61 67 53 74 72 69 | 6e 67 20 66 6f 72 20 74 |UMagStri|ng for t|
|000008b0| 68 65 20 70 75 72 70 6f | 73 65 20 6f 66 20 63 6f |he purpo|se of co|
|000008c0| 6d 70 61 72 69 73 6f 6e | 2e 20 20 49 66 20 69 74 |mparison|. If it|
|000008d0| 20 69 73 20 6e 6f 74 20 | 6e 69 6c 2c 0d 74 68 65 | is not |nil,.the|
|000008e0| 6e 20 74 68 65 20 70 72 | 6f 63 20 69 73 20 63 61 |n the pr|oc is ca|
|000008f0| 6c 6c 65 64 20 69 6e 73 | 74 65 61 64 20 6f 66 20 |lled ins|tead of |
|00000900| 49 55 4d 61 67 53 74 72 | 69 6e 67 2c 20 61 6e 64 |IUMagStr|ing, and|
|00000910| 20 79 6f 75 20 63 61 6e | 20 64 6f 20 77 68 61 74 | you can| do what|
|00000920| 65 76 65 72 20 6b 69 6e | 64 20 6f 66 20 63 6f 6d |ever kin|d of com|
|00000930| 70 61 72 69 73 6f 6e 0d | 79 6f 75 20 77 69 73 68 |parison.|you wish|
|00000940| 2e 20 20 59 6f 75 72 20 | 70 72 6f 63 20 69 73 20 |. Your |proc is |
|00000950| 61 20 72 65 70 6c 61 63 | 65 6d 65 6e 74 20 66 6f |a replac|ement fo|
|00000960| 72 20 49 55 4d 61 67 53 | 74 72 69 6e 67 2c 20 73 |r IUMagS|tring, s|
|00000970| 6f 20 69 74 20 73 68 6f | 75 6c 64 20 62 65 20 6f |o it sho|uld be o|
|00000980| 66 20 74 68 61 74 20 66 | 6f 72 6d 2c 20 65 78 63 |f that f|orm, exc|
|00000990| 65 70 74 0d 74 68 61 74 | 20 74 68 65 20 70 72 6f |ept.that| the pro|
|000009a0| 74 6f 74 79 70 65 20 69 | 73 20 61 20 43 20 70 72 |totype i|s a C pr|
|000009b0| 6f 74 6f 74 79 70 65 2c | 20 69 6e 73 74 65 61 64 |ototype,| instead|
|000009c0| 20 6f 66 20 74 79 70 65 | 20 70 61 73 63 61 6c 2e | of type| pascal.|
|000009d0| 0d 0d 54 68 65 20 70 72 | 6f 74 6f 74 79 70 65 73 |..The pr|ototypes|
|000009e0| 20 61 72 65 3a 0d 0d 74 | 79 70 65 64 65 66 20 76 | are:..t|ypedef v|
|000009f0| 6f 69 64 20 20 28 2a 43 | 4c 47 65 74 43 6f 6d 70 |oid (*C|LGetComp|
|00000a00| 61 72 65 44 61 74 61 50 | 72 6f 63 50 74 72 29 28 |areDataP|rocPtr)(|
|00000a10| 76 6f 69 64 20 2a 73 72 | 63 2c 20 73 68 6f 72 74 |void *sr|c, short|
|00000a20| 20 73 72 63 6c 65 6e 2c | 20 76 6f 69 64 20 2a 64 | srclen,| void *d|
|00000a30| 73 74 2c 20 73 68 6f 72 | 74 20 2a 64 73 74 6c 65 |st, shor|t *dstle|
|00000a40| 6e 29 3b 0d 74 79 70 65 | 64 65 66 20 73 68 6f 72 |n);.type|def shor|
|00000a50| 74 20 28 2a 43 4c 44 6f | 43 6f 6d 70 61 72 65 44 |t (*CLDo|CompareD|
|00000a60| 61 74 61 50 72 6f 63 50 | 74 72 29 28 76 6f 69 64 |ataProcP|tr)(void|
|00000a70| 20 2a 70 74 72 61 2c 20 | 76 6f 69 64 20 2a 70 74 | *ptra, |void *pt|
|00000a80| 72 62 2c 20 73 68 6f 72 | 74 20 6c 65 6e 61 2c 20 |rb, shor|t lena, |
|00000a90| 73 68 6f 72 74 20 6c 65 | 6e 62 29 3b 0d 0d 54 68 |short le|nb);..Th|
|00000aa0| 65 20 47 65 74 43 6f 6d | 70 61 72 65 44 61 74 61 |e GetCom|pareData|
|00000ab0| 20 70 72 6f 63 20 69 73 | 20 70 61 73 73 65 64 20 | proc is| passed |
|00000ac0| 69 6e 20 61 20 72 65 66 | 65 72 65 6e 63 65 20 74 |in a ref|erence t|
|00000ad0| 6f 20 74 68 65 20 64 61 | 74 61 2c 20 61 6e 64 20 |o the da|ta, and |
|00000ae0| 61 20 6c 65 6e 67 74 68 | 2e 20 20 49 74 73 20 6a |a length|. Its j|
|00000af0| 6f 62 20 69 73 20 74 6f | 0d 74 68 65 6e 20 72 65 |ob is to|.then re|
|00000b00| 74 75 72 6e 20 74 68 65 | 20 64 61 74 61 20 61 6e |turn the| data an|
|00000b10| 64 20 64 61 74 61 20 6c | 65 6e 67 74 68 20 6f 66 |d data l|ength of|
|00000b20| 20 77 68 61 74 20 74 68 | 65 20 63 6f 6d 70 61 72 | what th|e compar|
|00000b30| 65 20 64 61 74 61 20 73 | 68 6f 75 6c 64 20 6c 6f |e data s|hould lo|
|00000b40| 6f 6b 20 6c 69 6b 65 2e | 0d 0d 54 68 65 20 44 6f |ok like.|..The Do|
|00000b50| 43 6f 6d 70 61 72 65 44 | 61 74 61 20 70 72 6f 63 |CompareD|ata proc|
|00000b60| 20 69 73 20 6a 75 73 74 | 20 61 20 72 65 70 6c 61 | is just| a repla|
|00000b70| 63 65 6d 65 6e 74 20 66 | 6f 72 20 49 55 4d 61 67 |cement f|or IUMag|
|00000b80| 53 74 72 69 6e 67 2e 20 | 20 50 61 72 61 6d 65 74 |String. | Paramet|
|00000b90| 65 72 73 20 61 72 65 20 | 61 73 20 65 78 70 65 63 |ers are |as expec|
|00000ba0| 74 65 64 2e 0d 54 6f 20 | 73 65 74 20 74 68 65 20 |ted..To |set the |
|00000bb0| 70 72 6f 63 73 2c 20 79 | 6f 75 20 66 69 72 73 74 |procs, y|ou first|
|00000bc0| 20 6e 65 65 64 20 74 6f | 20 68 61 76 65 20 61 20 | need to| have a |
|00000bd0| 4c 69 73 74 20 63 6f 6e | 74 72 6f 6c 2e 20 20 54 |List con|trol. T|
|00000be0| 68 65 20 62 65 6c 6f 77 | 20 65 78 61 6d 70 6c 65 |he below| example|
|00000bf0| 20 61 73 73 75 6d 65 73 | 20 74 68 61 74 0d 74 68 | assumes| that.th|
|00000c00| 65 20 77 69 6e 64 6f 77 | 20 68 61 73 20 61 20 73 |e window| has a s|
|00000c10| 69 6e 67 6c 65 20 4c 69 | 73 74 20 63 6f 6e 74 72 |ingle Li|st contr|
|00000c20| 6f 6c 2e 0d 0d 0d 73 74 | 61 74 69 63 20 73 68 6f |ol....st|atic sho|
|00000c30| 72 74 20 20 20 20 4d 79 | 44 6f 43 6f 6d 70 61 72 |rt My|DoCompar|
|00000c40| 65 44 61 74 61 28 76 6f | 69 64 20 2a 70 74 72 61 |eData(vo|id *ptra|
|00000c50| 2c 20 76 6f 69 64 20 2a | 70 74 72 62 2c 20 73 68 |, void *|ptrb, sh|
|00000c60| 6f 72 74 20 6c 65 6e 61 | 2c 20 73 68 6f 72 74 20 |ort lena|, short |
|00000c70| 6c 65 6e 62 29 3b 0d 73 | 74 61 74 69 63 20 76 6f |lenb);.s|tatic vo|
|00000c80| 69 64 20 20 20 20 20 4d | 79 47 65 74 43 6f 6d 70 |id M|yGetComp|
|00000c90| 61 72 65 44 61 74 61 28 | 76 6f 69 64 20 2a 73 72 |areData(|void *sr|
|00000ca0| 63 2c 20 73 68 6f 72 74 | 20 73 72 63 6c 65 6e 2c |c, short| srclen,|
|00000cb0| 20 76 6f 69 64 20 2a 64 | 73 74 2c 20 73 68 6f 72 | void *d|st, shor|
|00000cc0| 74 20 2a 64 73 74 6c 65 | 6e 29 3b 0d 73 74 61 74 |t *dstle|n);.stat|
|00000cd0| 69 63 20 42 6f 6f 6c 65 | 61 6e 20 20 4d 79 4b 65 |ic Boole|an MyKe|
|00000ce0| 79 46 69 6c 74 65 72 28 | 4c 69 73 74 48 61 6e 64 |yFilter(|ListHand|
|00000cf0| 6c 65 20 6c 69 73 74 2c | 20 45 76 65 6e 74 52 65 |le list,| EventRe|
|00000d00| 63 6f 72 64 20 2a 65 76 | 65 6e 74 29 3b 0d 0d 20 |cord *ev|ent);.. |
|00000d10| 20 20 20 43 6f 6e 74 72 | 6f 6c 48 61 6e 64 6c 65 | Contr|olHandle|
|00000d20| 20 20 20 63 74 6c 3b 0d | 20 20 20 20 4c 69 73 74 | ctl;.| List|
|00000d30| 48 61 6e 64 6c 65 20 20 | 20 20 20 20 6c 69 73 74 |Handle | list|
|00000d40| 3b 0d 20 20 20 20 43 4c | 44 61 74 61 48 6e 64 6c |;. CL|DataHndl|
|00000d50| 20 20 20 20 20 20 6c 69 | 73 74 44 61 74 61 3b 0d | li|stData;.|
|00000d60| 0d 20 20 20 20 63 74 6c | 20 3d 20 43 4c 4e 65 78 |. ctl| = CLNex|
|00000d70| 74 28 77 69 6e 64 6f 77 | 2c 20 26 6c 69 73 74 2c |t(window|, &list,|
|00000d80| 20 6e 69 6c 2c 20 31 2c | 20 66 61 6c 73 65 29 3b | nil, 1,| false);|
|00000d90| 0d 20 20 20 20 6c 69 73 | 74 44 61 74 61 20 3d 20 |. lis|tData = |
|00000da0| 28 43 4c 44 61 74 61 48 | 6e 64 6c 29 28 2a 63 74 |(CLDataH|ndl)(*ct|
|00000db0| 6c 29 2d 3e 63 6f 6e 74 | 72 6c 44 61 74 61 3b 0d |l)->cont|rlData;.|
|00000dc0| 20 20 20 20 28 2a 6c 69 | 73 74 44 61 74 61 29 2d | (*li|stData)-|
|00000dd0| 3e 67 65 74 43 6f 6d 70 | 61 72 65 44 61 74 61 20 |>getComp|areData |
|00000de0| 3d 20 4d 79 47 65 74 43 | 6f 6d 70 61 72 65 44 61 |= MyGetC|ompareDa|
|00000df0| 74 61 3b 0d 20 20 20 20 | 28 2a 6c 69 73 74 44 61 |ta;. |(*listDa|
|00000e00| 74 61 29 2d 3e 64 6f 43 | 6f 6d 70 61 72 65 44 61 |ta)->doC|ompareDa|
|00000e10| 74 61 20 20 3d 20 4d 79 | 44 6f 43 6f 6d 70 61 72 |ta = My|DoCompar|
|00000e20| 65 44 61 74 61 3b 0d 20 | 20 20 20 28 2a 6c 69 73 |eData;. | (*lis|
|00000e30| 74 44 61 74 61 29 2d 3e | 6b 65 79 46 69 6c 74 65 |tData)->|keyFilte|
|00000e40| 72 20 20 20 20 20 20 3d | 20 4d 79 4b 65 79 46 69 |r =| MyKeyFi|
|00000e50| 6c 74 65 72 3b 0d 0d 20 | 20 20 20 20 20 20 20 54 |lter;.. | T|
|00000e60| 68 65 20 61 62 6f 76 65 | 20 63 6f 64 65 20 66 69 |he above| code fi|
|00000e70| 72 73 74 20 67 65 74 73 | 20 74 68 65 20 66 69 72 |rst gets| the fir|
|00000e80| 73 74 20 28 6f 6e 6c 79 | 29 20 4c 69 73 74 20 63 |st (only|) List c|
|00000e90| 6f 6e 74 72 6f 6c 20 69 | 6e 20 77 69 6e 64 6f 77 |ontrol i|n window|
|00000ea0| 2e 20 20 49 74 20 74 68 | 65 6e 20 67 65 74 73 0d |. It th|en gets.|
|00000eb0| 20 20 20 20 20 20 20 20 | 74 68 65 20 6c 69 73 74 | |the list|
|00000ec0| 44 61 74 61 20 72 65 63 | 6f 72 64 20 73 6f 20 74 |Data rec|ord so t|
|00000ed0| 68 61 74 20 69 74 20 63 | 61 6e 20 73 74 6f 72 65 |hat it c|an store|
|00000ee0| 20 74 68 65 20 63 6f 6d | 70 61 72 65 20 70 72 6f | the com|pare pro|
|00000ef0| 63 73 20 69 6e 74 6f 20 | 74 68 65 20 6c 69 73 74 |cs into |the list|
|00000f00| 2e 20 20 54 68 65 0d 20 | 20 20 20 20 20 20 20 70 |. The. | p|
|00000f10| 72 6f 63 73 20 61 72 65 | 20 74 68 65 6e 20 73 74 |rocs are| then st|
|00000f20| 6f 72 65 64 20 69 6e 74 | 6f 20 74 68 65 20 72 65 |ored int|o the re|
|00000f30| 63 6f 72 64 2e 0d 0d 0d | 00 3e 00 03 00 00 00 00 |cord....|.>......|
|00000f40| 00 0b 00 09 00 04 00 00 | 00 09 00 00 00 00 00 00 |........|........|
|00000f50| 00 00 0a 6c 00 0b 00 09 | 00 04 05 00 00 09 00 00 |...l....|........|
|00000f60| 00 00 00 00 00 00 0a 72 | 00 0b 00 09 00 04 00 00 |.......r|........|
|00000f70| 00 09 00 00 00 00 00 00 | |........| |
+--------+-------------------------+-------------------------+--------+--------+